package com.lianniu.web.baseService.help.controller;

import com.lianniu.web.base.BaseResult;
import com.lianniu.web.baseService.help.service.HelpCentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Administrator on 2017-05-21.
 */
@Controller
@RequestMapping("/rest/help")
public class HelpCenterInfoRestController {
    @Autowired
    HelpCentInfoService helpCentInfoService;

    @RequestMapping("/getHelp")
    @ResponseBody
    public BaseResult getHelp(String id) {

        return helpCentInfoService.selectByPrimaryKey(Long.valueOf(id));
    }
}
